package com.mz.entity;

import java.util.Date;

public class SysRole {

	private Long roleId;			//角色ID
	private String roleName;		//账号
	private Integer status;			//状态	-1|删除, 0|禁用, 1|正常
	private Date createTime;		//创建时间
	private Long createUser;		//创建用户
	private Date updateTime;		//最后一次更新时间
	private Long updateUser;		//最后更新用户
	
	public SysRole(){}
	
	public SysRole(Long roleId, String roleName, Integer status, Date createTime, Long createUser, Date updateTime,
			Long updateUser) {
		this.roleId = roleId;
		this.roleName = roleName;
		this.status = status;
		this.createTime = createTime;
		this.createUser = createUser;
		this.updateTime = updateTime;
		this.updateUser = updateUser;
	}



	public SysRole(String roleName){
		this.roleName = roleName;
		this.createTime = new Date();
		this.updateTime = this.createTime;
	}

	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Long getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}
}